//
//  HKError.m
//  YNDemo
//
//  Created by 胡锦涛 on 2020/11/27.
//

#import "HKError.h"

@implementation HKError
- (instancetype)initWithErrorType:(YNErrorType)errorType errorMessage:(NSString *)errorMessage
{
    self = [super init];
    if (self) {
        self = [HKError errorWithDomain:NSURLErrorDomain code:0 userInfo:nil];
        self.errorType = errorType;
        self.errorMessage = errorMessage;
    }
    return self;
}
@end
